QADrawTriMeshTexture
You can use theQADrawTriMeshTexture
function to draw a texture-mapped triangle mesh.
#define QADrawTriMeshTexture(drawContext,nTriangle,triangles) \ (drawContext)->drawTriMeshTexture (drawContext,nTriangle,triangles)
drawContext
- A draw context.
nTriangle
- The number of indexed triangles pointed to by the
triangles
parameter.triangles
- A pointer to an array of indexed triangles. See "Indexed Triangle Structure" (page 1-80) for a description of indexed triangles.
DESCRIPTION
TheQADrawTriMeshTexture
function draws the texture-mapped triangle mesh specified by thetriangles
parameter into the draw context specified by thedrawContext
parameter. Each triangle in the mesh is defined by aTQAIndexedTriangle
data structure, which contains three indices into the array of texture vertices previously submitted to the draw context by a call to theQASubmitVerticesTexture
function.SPECIAL CONSIDERATIONS
QADrawTriMeshTexture
operates only on a triangle mesh previously submitted using theQASubmitVerticesTexture
function. UseQADrawTriMeshGouraud
to draw a triangle mesh submitted using theQASubmitVerticesGouraud
function.The
QADrawTriMeshTexture
function is optional and must be supported only by drawing engines that support texture mapping.